package com.example.demo.common.util.entity;

public class ResultEnum {

    private Integer code;

    private String msg;

    public ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static final ResultEnum UNKNOWN_ERROR = new ResultEnum(-1, "程序内部出错请联系管理员！");
    public static final ResultEnum SUCCESS = new ResultEnum(200, "成功！");
    public static final ResultEnum ERROR = new ResultEnum(500, "程序异常错误");


}
